package com.luoc.base.config.mybatis.mapper;

import com.luoc.base.config.mybatis.entity.SysRoleResources;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author luoc
 * @since 2019-07-25
 */
@Mapper
public interface SysRoleResourcesMapper extends BaseMapper<SysRoleResources> {
    /**
     * 根据角色id查询用户资源
     *
     * @param roleId
     * @return
     */
    List<Map<String, Object>> selectResourceIdByRoleId(Integer roleId);
}
